home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
PVDRIVER
/
DVIWN281.ZIP
/
GENALLNT.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-09-30
|
1KB
|
30 lines
@echo off
if exist %TEMP%\lock_$_$.bat goto RUNNING
copy %1 %TEMP%\lock_$_$.bat > nul
del %1
if exist %TEMP%\error$_$ del %TEMP%\error$_$
call %TEMP%\lock_$_$
del %TEMP%\lock_$_$.bat
rem
rem The next command instructs dviwin to re-read all the fonts. If you
rem normally start dviwin with the "-1" command line switch, then you
rem need to specify the same switch here too.
rem
rem This batch file tests for the existence of the file %TEMP%\error$_$
rem which signals an error during the font generation. If such an error
rem has happened, we should not ask dviwin to reset the fonts, because
rem an endless loop will occur.
rem
if not exist %TEMP%\error$_$ dviwin -r
if exist %TEMP%\error$_$ del %TEMP%\error$_$
goto GETOUT
:RUNNING
echo/
echo It seems that another instance of this batch file is already running.
echo If this is true, please wait until it finishes and then run this batch
echo file again. If on the other hand this is not true, delete the file
echo %TEMP%\lock_$_$.bat and then run this batch file again.
echo/
pause
:GETOUT